package com.demo.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @ClassName: Account
 * @Description:
 */

@Entity
@Table(name="Account")
public class Account implements Serializable, BaseEntity {
	
	private static final long serialVersionUID = -5467544030155187780L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	@Column(name="account")
	private String account;

	@Column(name="password")
	private String password;

	@Column(name="name")
	private String name;
	
	@Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_TIME")
	private Date createdTime;
	
	@Temporal( TemporalType.TIMESTAMP)
	@Column(name="UPDATED_TIME")
	private Date updatedTime;

	private boolean deleted;
	
	public void setCreateTime(Date now) {
		this.createdTime = now;
	}
	
	public Date getCreatedTime() {
		return this.createdTime;
	}

	public void setUpdatedTime(Date now) {
		this.updatedTime = now;
	}
	
	public Date getUpdatedTime(){
		return this.updatedTime;
	}

	public boolean getDeleted() {
		return this.deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
